﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.ServiceModel;
using System.Runtime.Serialization;
namespace K.EnterpriseLibary
{
    [DataContract]
    [Serializable]
    public abstract class Packing
    {
        private decimal _Id;
        private double _Height;
        private double _Width;
        private double _Length;
        private double _Weight;
        private bool _IsDamage;

        
        public Packing()
        {
            _IsDamage = false;
        }

        [DataMember]
        public decimal Id
        {
            get { return _Id; }
            set { _Id = value; }
        }

        [DataMember]
        public double Height
        {
            get { return _Height; }
            set { _Height = value; }
        }

        [DataMember]
        public double Width
        {
            get { return _Width; }
            set { _Width = value; }
        }

        [DataMember]
        public double Length
        {
            get { return _Length; }
            set { _Length = value; }
        }

        [DataMember]
        public double Weight
        {
            get { return _Weight; }
            set { _Weight = value; }
        }

        [DataMember]
        public bool IsDamage
        {
            get {return _IsDamage;}
            set { _IsDamage = value; }
        }


        public void AutoDamage()
        {
            _IsDamage = true;
        }
    }
}
